<?php
/**
{
    "teacherLearnedId": "INT //ID",
    "uid": "INT //用户@foreign::tbl_user; @noload",
    "nick": "VARCHAR //昵称@search",
    "avatar": "VARCHAR //头像@image; ",
    "teacherId": "INT //学校@foreign::tbl_teacher; ",
    "created": "DATETIME //创建时间@noload"
}
 */

class TeacherLearned extends Base
{
    
	private $teacherLearnedId= '';//ID
	private $uid= '';//用户@foreign::tbl_user;@noload
	private $nick= NULL;//昵称@search
	private $avatar= NULL;//头像@image;
	private $teacherId= '';//学校@foreign::tbl_teacher;
	private $created= 'CURRENT_TIMESTAMP';//创建时间@noload

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_teacher_learned';
    }
    
    public  function key(){
        return 'teacherLearnedId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'TeacherLearned';
    }
    
    public  function field()
    {
        return array (  'teacherLearnedId' =>   array (    0 => 'INT',    1 => 11,    2 => 'ID',  ),  'uid' =>   array (    0 => 'INT',    1 => 11,    2 => '用户@foreign::tbl_user;@noload',  ),  'nick' =>   array (    0 => 'VARCHAR',    1 => 50,    2 => '昵称@search',  ),  'avatar' =>   array (    0 => 'VARCHAR',    1 => 512,    2 => '头像@image;',  ),  'teacherId' =>   array (    0 => 'INT',    1 => 11,    2 => '学校@foreign::tbl_teacher;',  ),  'created' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '创建时间@noload',  ),);
    }


}